﻿using System;

namespace DMZS.Model
{
    /// <summary>
    /// DlyndxOrder:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class DlyndxOrder
    {
        public DlyndxOrder()
        {
        }
        private string _comment = string.Empty;
        private string _btypeid = string.Empty;
        private string _etypeid = string.Empty;
        private string _ktypeid = string.Empty;
        private string _ktypeid2 = string.Empty;
        private string _ifcheck = "0";
        private string _checke = string.Empty;
        private int? _period = 0;
        private string _inputno = string.Empty;
        private int? _draft = 1;
        private string _deptid = string.Empty;
        private int? _isstop = 0;
        private decimal? _defdiscount = 0M;
        /// <summary>
        ///
        /// </summary>
        public decimal Vchcode { get; set; }
        /// <summary>
        ///
        /// </summary>
        public DateTime? Date { get; set; }
        /// <summary>
        ///
        /// </summary>
        public string Number { get; set; }
        /// <summary>
        ///
        /// </summary>
        public decimal? VchType { get; set; }
        /// <summary>
        ///
        /// </summary>
        public string Comment
        {
            set
            {
                _comment = value;
            }
            get
            {
                return _comment;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public string btypeid
        {
            set
            {
                _btypeid = value;
            }
            get
            {
                return _btypeid;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public string etypeid
        {
            set
            {
                _etypeid = value;
            }
            get
            {
                return _etypeid;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public string ktypeid
        {
            set
            {
                _ktypeid = value;
            }
            get
            {
                return _ktypeid;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public string ktypeid2
        {
            set
            {
                _ktypeid2 = value;
            }
            get
            {
                return _ktypeid2;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public string ifcheck
        {
            set
            {
                _ifcheck = value;
            }
            get
            {
                return _ifcheck;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public string checke
        {
            set
            {
                _checke = value;
            }
            get
            {
                return _checke;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public int? Period
        {
            set
            {
                _period = value;
            }
            get
            {
                return _period;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public string InputNo
        {
            set
            {
                _inputno = value;
            }
            get
            {
                return _inputno;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public int? draft
        {
            set
            {
                _draft = value;
            }
            get
            {
                return _draft;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public string deptid
        {
            set
            {
                _deptid = value;
            }
            get
            {
                return _deptid;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public int? IsStop
        {
            set
            {
                _isstop = value;
            }
            get
            {
                return _isstop;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public DateTime? todate { get; set; }
        /// <summary>
        ///
        /// </summary>
        public decimal? defdiscount
        {
            set
            {
                _defdiscount = value;
            }
            get
            {
                return _defdiscount;
            }
        }
        /// <summary>
        ///
        /// </summary>
        public DateTime? checkeDate { get; set; }



        /// <summary>
        /// 单据类型
        /// </summary>
        public enum OrderType
        {
            /// <summary>
            /// 采购订单
            /// </summary>
            CGDD,
            /// <summary>
            /// 成品入库
            /// </summary>
            CPRK,
            /// <summary>
            /// 发货单
            /// </summary>
            FHD,
            /// <summary>
            /// 销售出库
            /// </summary>
            XOUT,
            /// <summary>
            /// 销售订单
            /// </summary>
            XSDD,
            /// <summary>
            /// 入库单
            /// </summary>
            RKD,
            /// <summary>
            /// 出库单
            /// </summary>
            CKD
        }
    }
}

